export const columns1 = [
  { prop: "测评维度", label: "测评维度", width: 150 },
  { prop: "测评批次", label: "测评批次", width: 150 },
  { prop: "测评周期", label: "测评周期", width: 150 },
  // { prop: "USID", label: "USID", width: 180 },
  { prop: "OUTBOUND", label: "编号", width: 200 },
  { prop: "外地市", label: "外地市", width: 150 },
  { prop: "区县", label: "区县", width: 150 },
  { prop: "网格", label: "网格", width: 150 },
  { prop: "装维员", label: "装维员", width: 150 },
  { prop: "代维工号", label: "代维工号", width: 150 },
  { prop: "小区名称", label: "小区名称", width: 180 },
  // { prop: "号码", label: "号码", showOverflowTooltip: false },
  { prop: "宽带账号", label: "宽带账号", width: 200 },
  { prop: "属性", label: "属性", width: 150 },
  { prop: "上网质量", label: "上网质量", width: 150 },
  { prop: "装维服务", label: "装维服务", width: 150 },
  { prop: "测评分类", label: "测评分类", width: 150 },
  { prop: "奖惩", label: "奖惩", width: 150 },
  { prop: "修复人", label: "修复人", width: 150 },
  { prop: "首次回访", label: "首次回访", width: 150 },
  { prop: "低满原因", label: "低满原因", width: 150 },
  { prop: "溯源原因1", label: "溯源原因1", width: 150 },
  { prop: "溯源备注", label: "溯源备注", width: 150 },
  // { prop: "分析报告", label: "分析报告" },
  { prop: "新装触点", label: "新装触点", width: 150 },
  { prop: "投诉触点", label: "投诉触点", width: 150 },
  { prop: "服务触点", label: "服务触点", width: 150 },
  { prop: "路由器", label: "路由器", width: 150 },
  { prop: "业务带宽", label: "业务带宽", width: 150 },
  { prop: "协商速率", label: "协商速率", width: 150 },
  { prop: "速率不一致", label: "速率不一致", width: 150 },
  { prop: "光猫", label: "光猫", width: 150 },
  { prop: "质差终端", label: "质差终端", width: 150 },
  { prop: "光衰", label: "光衰", width: 150 },
  { prop: "强弱光", label: "强弱光", width: 150 },
  { prop: "最后上线时间", label: "最后上线时间", width: 150 },
  { prop: "30天内异常下线", label: "30天内异常下线", width: 150 },
  { prop: "后台判断", label: "后台判断", width: 150 }
];

function formatUserNumber(number) {
  console.log("number", number);
  if (number.length !== 11) return number; // 确保号码长度正确
  return `${number.slice(0, 3)}****${number.slice(7)}`;
}

export const columns2 = [
  { prop: "用户号码", label: "用户号码", width: 150, render: label => <span>{formatUserNumber(label.row.用户号码)}</span> },
  { prop: "低满用户来源", label: "低满用户来源", width: 150 },
  { prop: "月份", label: "月份", width: 150 },
  { prop: "用户属性", label: "用户属性", width: 150 },
  { prop: "话音质量", label: "话音质量", width: 150 },
  { prop: "上网质量", label: "上网质量", width: 150 },
  { prop: "网络质量", label: "网络质量", width: 150 },
  { prop: "语音质量", label: "语音质量", width: 150 },
  { prop: "区县", label: "区县", width: 150 },
  { prop: "季度", label: "季度", width: 150 },
  { prop: "回访情况", label: "回访情况", width: 150 },
  { prop: "分类", label: "分类", width: 150 },
  { prop: "客群分类", label: "客群分类", width: 150 },
  { prop: "是否友好用户", label: "是否友好用户", width: 150 },
  { prop: "是否易访库", label: "是否易访库", width: 150 },
  { prop: "是否解决", label: "是否解决", width: 150 },
  { prop: "是否白名单", label: "是否白名单", width: 150 },
  { prop: "投诉情况", label: "投诉情况", width: 150 },
  { prop: "综合运营是否受访成功", label: "综合运营是否受访成功", width: 150 },
  { prop: "综合运营评分", label: "综合运营评分", width: 150 },
  { prop: "综合运营受访不满意原因分类", label: "综合运营受访不满意原因分类", width: 150 },
  { prop: "白天常驻小区名称", label: "白天常驻小区名称", width: 150 },
  { prop: "白天常驻小区是否为高负荷待扩容小区", label: "白天常驻小区是否为高负荷待扩容小区", width: 150 },
  { prop: "白天常驻小区是否曾为弱覆盖小区", label: "白天常驻小区是否曾为弱覆盖小区", width: 150 },
  { prop: "白天常驻小区是否为故障小区", label: "白天常驻小区是否为故障小区", width: 150 },
  { prop: "白天常驻小区是否为高干扰小区", label: "白天常驻小区是否为高干扰小区", width: 150 },
  { prop: "夜晚常驻小区名称", label: "夜晚常驻小区名称", width: 150 },
  { prop: "夜晚常驻小区是否为高负荷待扩容小区", label: "夜晚常驻小区是否为高负荷待扩容小区", width: 150 },
  { prop: "夜晚常驻小区是否曾为弱覆盖小区", label: "夜晚常驻小区是否曾为弱覆盖小区", width: 150 },
  { prop: "夜晚常驻小区是否为故障小区", label: "夜晚常驻小区是否为故障小区", width: 150 },
  { prop: "夜晚常驻小区是否为高干扰小区", label: "夜晚常驻小区是否为高干扰小区", width: 150 }
];
